const Mock = require('mockjs')

// 模拟数据
const dataInfo = Mock.mock({
  total: 30,
  'list|10': [
    {
      id: '@id',
      title: '@csentence(10,20)',
      'status|1': ['published', 'draft', 'deleted'],
      author: 'name',
      display_time: '@datetime',
      pageviews: '@integer(300,500)'
    }
  ]
})
module.exports = [
  {
    url: '/api/news/toplist',
    type: 'get',
    response: config => {
      return {
        success: true, message: '', data: dataInfo
      }
    }
  }
]
